package com.lijie.ljblog.service;

import com.github.pagehelper.PageInfo;
import com.lijie.ljblog.model.Classify;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lijie.ljblog.util.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lijie
 * @since 2021-08-28
 */
public interface ClassifyService extends IService<Classify> {

    //拿第一层分类
     List<Classify> getPClassify();
    //查具体分类
    PageInfo<Classify> getClassifyByPid(Integer id);

    Result<Object> addClassify(Classify classify);

}
